<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.io.*, java.sql.*, java.util.*,LS.*, date.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="UTF-8">
<style>
body,table,tr,td,select,input,div,form,textarea,font{font-family:Mond; font-size=12pt; } 
table {
	width: 90%;
	margin-left: 20px;
}

.panality {
	font-weight: bolder;
	color: red;
}

.title {
	width: 20%;
	margin: 0px;
	font-weight: bolder;
	padding: 10px;
	padding-right: 20px;
	text-align: right;
}
/* td,tr{ */
/* 	font-weight:bolder; */
/* 	padding:10px; */
/* } */
#outerview {
	padding-top: 10px;
	margin-left: 0px;
	text-align: center;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

#outerview {
	width: 100%;
	min-height: 550px;
	padding: 0px;
}

#middleview {
	width: 90%;
	height: 420px;
	margin: 0px auto 0px auto;
	left: 50%;
}

#innerview {
	margin-top: 30px;
	width: 100%;
	height: 100%;
	text-align: center;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

#picture {
	padding-top: 10px;
	width: 200px;
	height: 100%;
	text-align: right;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.btntd {
	text-align: center;
}

.rightdiv {
	text-align: right;
}

#addsuccess {
	border: 1px solid #000000;
}
</style>

<head>
	
	<meta charset="utf-8">
	<title>성공회대학교 기자재 대여 시스템</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<!-- styles시트 -->
	<link href="/LSsystem/assets/css/bootstrap.css" rel="stylesheet">
	<link href="/LSsystem/assets/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="/LSsystem/assets/css/docs.css" rel="stylesheet">
	
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>    
	<script type="text/javascript">
	//함수 추가 부분
	</script>
</head>

<body data-spy="scroll" data-target=".bs-docs-sidebar">
	<% if(request.getParameter("check")!=null){%>
			<script> alert ("비밀번호가 일치하지 않거나 아이디가 존재합니다.");</script>
	<%} %>
	<!-- 메뉴
    ================================================== -->
    
    
	<%
	Users u = (Users)session.getAttribute("user");
	if(u==null) {%>
	<jsp:include page="/top.do"></jsp:include>
	<%}else{
	    	if(u.getUser_position().equalsIgnoreCase("S")){%>
	<!-- 학생이 로그인 했을 경우 메뉴 -->
	<jsp:include page="/studenttop.do"></jsp:include>
	<%}else if(u.getUser_position().equalsIgnoreCase("P")) {%>
	<!-- 교수가 로그인 했을 경우 메뉴 -->
	<jsp:include page="/teachertop.do"></jsp:include>
	<%}else{%>
	<!-- 관리자가 로그인 했을 경우 메뉴 -->
	<jsp:include page="/managertop.do"></jsp:include>
	<%}}%>
	<!-- 게시판
    ================================================== -->
	<div style="text-align: center">
		<div class="marketing"
			style="margin-bottom: 30px; color: #000; text-align: left">
			<div class="container">
				<h3 style="margin: 10px; font-size: 35px;">
					<strong>관리자 관리</strong>
				</h3>
			</div>
		</div>
	</div>
	
	<div class="container">
		<div id="outerview">
			<div id="middleview">
				<% if(u != null) { %>
<!-- 				<div id="innerview"> -->
					<div class="control-gruop">
					
							<div class="contrssols">
								<br>
								<form action="addManager.do" method="post">
								<table>
								<tr>
									<td class="title">관리자 계정 추가</td>
								</tr>
									<tr>
										<td class="title">아이디</td>
										<td style="text-align:left;"><input id="id" name="id" type="text" class="input-middle"></td>
									</tr>
									<tr>
										<td class="title">비밀번호</td>
										<td style="text-align:left;"><input id="pw1" name="pw1" type="password" class="input-middle"></td>
									</tr>
									
									<tr>
										<td class="title">비밀번호 확인</td>
										<td style="text-align:left;"><input id="pw2" name="pw2" type="password" class="input-middle"></td>
									</tr>
									
									<tr>
										<td class="title">이름</td>
										<td style="text-align:left;"><input id="name" name="name" type="text" class="input-middle"></td>
									</tr>
									<tr>
										<td class="title"></td>
										<td style="text-align:left;"><Button class="btn">추가</Button></td>
									</tr>
								</table>
								</form>
								<br>
								
								<form action="deleteManager.do" method="post">
								<table>
								<tr>
									<td class="title">관리자 계정 삭제</td>
								</tr>
									<tr>
										<td class="title">아이디</td>
										<td style="text-align:left;">
										<select name="user_id">
											<c:forEach var="item" items="${selectManager}">
												<option value="${item.user_id}">${item.user_id}</option>
											</c:forEach>
										</select>
										</td>
									</tr>
									<tr>
										<td class="title"></td>
										<td style="text-align:left;"><Button class="btn">삭제</Button></td>
									</tr>
								</table>
								</form>						
<!-- 							</div> -->
							<br>
					</div>
				</div>
				<% } %>
			</div>
		</div>
	</div>
	<!-- 꼬리말
    ================================================== -->
	<footer class="footer">
		<div class="container">
			<p>Copyright SKHU. Software Student.</p>
		</div>
	</footer>

	<!-- javascript -->
	<script src="/LSsystem/assets/js/jquery.js"></script>
	<script type="text/javascript" src="/LSsystem/assets/js/bootstrap.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$('.dropdown-toggle').dropdown();
		});
	</script>
</body>
</html>
